package red_text_ui;

import net.rim.device.api.collection.util.BasicFilteredList;
import net.rim.device.api.ui.component.AutoCompleteField;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.container.MainScreen;

public class HelloWorldDemo extends MainScreen {

	public HelloWorldDemo() {
		BasicFilteredList filterList = new BasicFilteredList();
		String[] days = { "Monday", "Tuesday", "Wednesday", "Thursday",
				"Friday", "Saturday", "Sunday" };
		filterList.addDataSet(1, days, "days",
				BasicFilteredList.COMPARISON_IGNORE_CASE);
		AutoCompleteField autoCompleteField = new AutoCompleteField(filterList);
		add(autoCompleteField);
		BasicFilteredList filterList1 = new BasicFilteredList();
		filterList1.addDataSet(1, days, "days",
				BasicFilteredList.COMPARISON_IGNORE_CASE);
		AutoCompleteField autoCompleteField1 = new AutoCompleteField(
				filterList1);
		add(autoCompleteField1);

	}

	public void close() {
		Dialog.alert("Goodbye!");
		super.close();
	}

}
